home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
Documents
/
Other
/
KBNS.verification.32.1
/
KBNS.11.3.011
/
protoTest.m2
< prev
Wrap
Text File
|
1994-01-08
|
698b
|
32 lines
// For TEST..., see KBNS.11.3.012
#ifndef TESTWITHOUTIMPORTEDHEADERS
#ifndef __cplusplus
#import <objc/Object.h>
#import <objc/Protocol.h>
#import <stdio.h>
#else /* #ifndef __cplusplus */
extern "Objective-C"
{
#import <objc/Object.h>
#import <objc/Protocol.h>
}
extern "C"
{
#import <stdio.h>
}
#endif /* #ifndef __cplusplus */
#endif /* #ifndef TESTWITHOUTIMPORTEDHEADERS */
@protocol TestProto
-why:(id)hi that:(bycopy id)hello;
@end
int main(void){
/*var*/ struct objc_method_description* md;
md=[@protocol(TestProto) descriptionForInstanceMethod:@selector(why:that:)];
fprintf(stderr,"%s %s\n",[@protocol(TestProto) name], md->types);
#ifndef __cplusplus
exit(0);
#endif
}